Thread: The OR || on keyboard, where is it?

  1. #1
    Registered User Bassglider's Avatar
    Join Date
    Nov 2007
    Posts
    32

    The OR || on keyboard, where is it?

    I cannot find where the OR symbol is on the keyboard it looks like a || cut horizontally, but not a :

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    What OR keyboard symbol are you talking about? I know of no such thing. Logical OR in C is denoted by ||. That is two | char's, informally called a "pipe char" by some. More info on that character here: http://en.wikipedia.org/wiki/Vertical_bar

    If you want a different answer you have to be more specific.

  3. #3
    Registered User Bassglider's Avatar
    Join Date
    Nov 2007
    Posts
    32
    I didn't know vertical/pipe/broken bar ( |, ¦ ) those two equal the same thing?


    On the wiki page it says that Broken bar (&#166 is a separate character from |

    Please clarify

  4. #4
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    404
    I would say it depends on your keyboard and depends on your keyboard settings.

    For my part, it's Shift+# (shift + the key left to character 1)

  5. #5
    Registered User
    Join Date
    Nov 2007
    Location
    AUSTRALIA
    Posts
    22
    On my keyboard that symbol lives above the backslash symbol. Shift + \ (twice) gets me the 'OR'. cheers

  6. #6
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Possibly this:
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  7. #7
    Registered User Bassglider's Avatar
    Join Date
    Nov 2007
    Posts
    32
    Cool thanks || it is

  8. #8
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Bassglider View Post
    I cannot find where the OR symbol is on the keyboard it looks like a || cut horizontally, but not a :
    Nice joke... Lotta people fell for it.

    (How did you type || if you don't know where the key is...)

  9. #9
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by brewbuck View Post
    Nice joke... Lotta people fell for it.

    (How did you type || if you don't know where the key is...)
    Copy & paste?

  10. #10
    Registered User Bassglider's Avatar
    Join Date
    Nov 2007
    Posts
    32
    Lol, no it wasn't a joke

    i wanted to know if there was a difference in using the | and ¦ in the purpose of writing the logical OR

  11. #11
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Now you just need to find the any key.

  12. #12
    Registered User
    Join Date
    Nov 2007
    Location
    AUSTRALIA
    Posts
    22
    Would that be an 'if any' key or an 'else any' key?

  13. #13
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Rossco View Post
    Would that be an 'if any' key or an 'else any' key?
    The only one I've heard of is the "press any key", and I didn't have any problem finding it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Personal Program that is making me go wtf?
    By Submeg in forum C Programming
    Replies: 20
    Last Post: 06-27-2006, 12:13 AM
  2. process killer on a loop
    By Anddos in forum Windows Programming
    Replies: 8
    Last Post: 01-11-2006, 01:50 AM
  3. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  4. Massive Function Problem
    By Marc Sharp in forum C Programming
    Replies: 10
    Last Post: 11-19-2003, 08:49 PM
  5. Tic Tac Toe Help
    By aresashura in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 12:52 PM